Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: prefer new(big.Int) over big.NewInt(0) #1141

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

qinglin89
Copy link
Contributor

@qinglin89 qinglin89 commented Oct 16, 2022

Description

Sync with go-ethereum:

minor performance improvement: big.NewInt(0).Xxx -> new(big.Int).Xxx

Rationale

N/A

Example

N/A

Changes

N/A

minor performance improvement: `big.NewInt(0).Xxx` -> `new(big.Int).Xxx`
@brilliant-lx brilliant-lx merged commit 2003d54 into bnb-chain:develop Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants